package com.ryan.mms.privilage.dto;

import java.util.Date;

import com.ryan.framework.dto.Dto;

public class ResourceDto implements Dto{

	// Fields

	private Long resourceId;
	private String resourceCode;
	private String resourceName;
	private Integer resourceType;
	private Long parentResourceId;
	private Long applicationId;
	private String resourceDescription;
	private String defaultUrl;
	private Integer status;
	private Date createTime;
	private Date lastModifyTime;
	private ApplicationsDto applicationsDto;

	// Constructors

	/** default constructor */
	public ResourceDto() {
	}

	/** minimal constructor */
	public ResourceDto(String resourceCode, String resourceName, Integer status) {
		this.resourceCode = resourceCode;
		this.resourceName = resourceName;
		this.status = status;
	}

	/** full constructor */
	public ResourceDto(String resourceCode, String resourceName,
			Long parentResourceId, Integer resourceType, String resourceDescription,
			String defaultUrl, Integer status, Date createTime,
			Date lastModifyTime) {
		this.resourceCode = resourceCode;
		this.resourceName = resourceName;
		this.parentResourceId = parentResourceId;
		this.resourceType = resourceType;
		this.resourceDescription = resourceDescription;
		this.defaultUrl = defaultUrl;
		this.status = status;
		this.createTime = createTime;
		this.lastModifyTime = lastModifyTime;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public String getResourceCode() {
		return resourceCode;
	}

	public void setResourceCode(String resourceCode) {
		this.resourceCode = resourceCode;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public Integer getResourceType() {
		return resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public Long getParentResourceId() {
		return parentResourceId;
	}

	public void setParentResourceId(Long parentResourceId) {
		this.parentResourceId = parentResourceId;
	}

	public Long getApplicationId() {
		return applicationId;
	}

	public void setApplicationId(Long applicationId) {
		this.applicationId = applicationId;
	}

	public String getResourceDescription() {
		return resourceDescription;
	}

	public void setResourceDescription(String resourceDescription) {
		this.resourceDescription = resourceDescription;
	}

	public String getDefaultUrl() {
		return defaultUrl;
	}

	public void setDefaultUrl(String defaultUrl) {
		this.defaultUrl = defaultUrl;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public ApplicationsDto getApplicationsDto() {
		return applicationsDto;
	}

	public void setApplicationsDto(ApplicationsDto applicationsDto) {
		this.applicationsDto = applicationsDto;
	}
}